class MethodValue:

    def method(self, method):
        self.method = method
        return self

    def value(self, value):
        self.value = value
        return self

    def message(self, message):
        self.message = message
        return self


s = MethodValue()


class ElementLocation:

    def ele_xpath(self, value=None, message=None):
        return self.show("xpath", value, message)

    def ele_css(self, value=None, message=None):
        return self.show("css", value, message)

    def show(self, method, value=None, message=None):
        return {
            "method": method,
            "value": value,
            "message": message,
        }


print(ElementLocation().ele_css(value="//a[@class='j122']"))


def ele(func):
    def inner(*args, **kwargs):

        func(*args, **kwargs)

    return inner
